//
//  UIColor+HibuSearch.m
//  BIPV10
//
//  Created by Tom York on 03/06/2013.
//  Copyright (c) 2013 Hibu (UK) Limited. All rights reserved.
//

#import "UIColor+Handou.h"

@implementation UIColor (HibuSearch)

+ (UIColor*)colorWithHex:(NSInteger)hexColor
{
    const NSInteger red = (hexColor & 0xFF0000) >> 16;
    const NSInteger green = (hexColor & 0x00FF00) >> 8;
    const NSInteger blue = (hexColor & 0x0000FF);
    return [UIColor colorWithRed:(CGFloat)red/255.0f green:(CGFloat)green/255.0f blue:(CGFloat)blue/255.0f alpha:1.0f];
}

+ (UIColor*)color256WithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue
{
    return [UIColor colorWithRed:(CGFloat)red/255.0f green:(CGFloat)green/255.0f blue:(CGFloat)blue/255.0f alpha:1.0f];
}

+ (UIColor*)color256WithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha
{
    return [UIColor colorWithRed:(CGFloat)red/255.0f green:(CGFloat)green/255.0f blue:(CGFloat)blue/255.0f alpha:alpha];
}

+ (UIColor*)handouGreen
{
    return [self color256WithRed:209 green:249 blue:0 alpha:0.9];
}

+ (UIColor*)handouButtonGreen
{
    return [self color256WithRed:209 green:249 blue:0 alpha:0.9];
}

+ (UIColor *)handouButtonGreenOn
{
    return [self color256WithRed:171 green:197 blue:0 alpha:0.9];
}

+ (UIColor*)handouButtonDark
{
    return [self color256WithRed:34 green:34 blue:34 alpha:0.8];
}

+ (UIColor *)handouButtonDarkOn
{
    return [self color256WithRed:0 green:0 blue:0 alpha:0.8];
}

+ (UIColor*)handouButtonGray
{
    return [self color256WithRed:85 green:85 blue:85 alpha:0.8];
}


+ (UIColor *)colorOfFinanceWashCar
{
    return [UIColor colorWithHex:0x006ADB];
}

+ (UIColor *)colorOfFinanceBeautifulCar
{
    return [UIColor colorWithHex:0xE39EC5];
}


+ (UIColor *)colorOfFinanceDecoration
{
    return [UIColor colorWithHex:0xFD8400];
}


+ (UIColor *)colorOfFinanceRefitting
{
    return [UIColor colorWithHex:0x24B081];
}


+ (UIColor *)colorOfFinanceMaintenance
{
    return [UIColor colorWithHex:0x1F755B];
}


+ (UIColor *)colorOfFinanceRepair
{
    return [UIColor colorWithHex:0x8EAF00];
}


+ (UIColor *)colorOfFinancePackages
{
    return [UIColor colorWithHex:0xFC4B60];
}


+ (UIColor *)colorOfFinanceSales
{
    return [UIColor colorWithHex:0x7AC5C8];
}


+ (UIColor *)colorOfFinanceSpray
{
    return [UIColor colorWithHex:0xC82E00];
}


+ (UIColor *)colorOfFinanceTire
{
    return [UIColor colorWithHex:0xFFBF00];
}


+ (UIColor *)colorOfFinanceOthers
{
    return [UIColor colorWithHex:0x60166C];
}


+ (UIColor *)colorOfFinanceSpare
{
    return [UIColor colorWithHex:0x59B200];
}



@end
